package com.jwinni.IO.DemoOutput;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
/*
* 图片复制（文件字节流）
*
*jhome
*
* */
public class ImgCopy {
    public static void main(String[] args) throws IOException {
        File file;
        FileInputStream fis=new FileInputStream("E:\\img1.jpg");
        FileOutputStream fos=new FileOutputStream("static/img1.jpg");
        byte[] bytes = new byte[1024];
        int len = 0;
        while ((len=fis.read(bytes))!=-1){
           fos.write(bytes,0,len);
            }
        fos.close();
        fis.close();
        }
}

